<script>
    jQuery(document).ready(function($){
        mCustomScrollbars();
    });

    function mCustomScrollbars(){
        /*
         malihu custom scrollbar function parameters:
         1) scroll type (values: "vertical" or "horizontal")
         2) scroll easing amount (0 for no easing)
         3) scroll easing type
         4) extra bottom scrolling space for vertical scroll type only (minimum value: 1)
         5) scrollbar height/width adjustment (values: "auto" or "fixed")
         6) mouse-wheel support (values: "yes" or "no")
         7) scrolling via buttons support (values: "yes" or "no")
         8) buttons scrolling speed (values: 1-20, 1 being the slowest)
         */
        jQuery("#single-post-content").mCustomScrollbar("vertical",300,"easeOutCirc",1.05,"fixed","yes","yes",15);

    }

    /* function to fix the -10000 pixel limit of jquery.animate */
    jQuery.fx.prototype.cur = function(){
        if ( this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null) ) {
            return this.elem[ this.prop ];
        }
        var r = parseFloat( jQuery.css( this.elem, this.prop ) );
        return typeof r == 'undefined' ? 0 : r;
    }
</script>

<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
				<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                    <div id="single-post">
                        <h3><?php the_title(); ?></h3>
                        <div id="single-post-content" class="page-text-content">
                            <div class="customScrollBox">
                                <div class="container">
                                    <div class="content">
                                        <?php the_content();?>
                                    </div>
                                </div>
                                <div class="dragger_container">
                                    <div class="dragger"></div>
                                </div>
                            </div>

                        </div>
                     </div>
                </div>
<?php endwhile; // end of the loop. ?>